package io.renren.modules.substation.dao;

import io.renren.modules.substation.entity.TInfoRoleAreaEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 角色区域权限表
 * 
 * @author yzx
 * @email sunlightcs@gmail.com
 * @date 2020-07-13 10:37:26
 */
@Mapper
public interface TInfoRoleAreaDao extends BaseMapper<TInfoRoleAreaEntity> {

    /**
     * 根据角色ID数组，批量删除
     */
    int deleteBatch(Long[] roloeIds);

    List<TInfoRoleAreaEntity> listByRoleId(Long id);

    List<Long> queryAreaIdList(Long id);

    List<TInfoRoleAreaEntity> getAreaPermsByUser(Map<String, Object> params);

    List<Long> getAreaListByUser(Map<String, Object> params);
}
